<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head th:replace="~{fragments/header :: header}">
</head>
<body>
<link href="../../css/login.css" th:href="@{/css/login.css}" rel="stylesheet">
<div class="container">
    <div class="row" style="  margin-top: 12%;">
        <div class="col-md-5 mx-auto">
            <form class="form-horizontal" th:action="@{/login}" method="post">
                <span class="heading">实验室管理登录</span>
                <div class="form-group">
                    <input type="text" class="form-control" name="username" id="username"  placeholder="用户名">
                    <i class="fa fa-user"></i>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" name="password" id="password" placeholder="密　码">
                    <i class="fa fa-lock"></i>
                    <a href="#" class="fa fa-question-circle"></a>
                </div>
                <div class="form-group">
                    <div class="custom-control custom-checkbox">
                        <input class="custom-control-input" name="remember-me" id="same-address" type="checkbox">
                        <label class="custom-control-label " for="same-address">记住我</label>
                    </div>
                    <button type="submit" class="btn btn-primary float-right">登录</button>
                </div>
                <div class="text-danger text-center" th:if="${loginError}" th:text="${errorMsg}" ></div>
            </form>
        </div>
    </div>
</div>
<div th:replace="~{fragments/footer ::footer}"></div>
</body>
</html>